import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "./assets/css/reset.less";

//移动端适配
import "amfe-flexible";

//vant引入
import {
  ActionBar,
  ActionBarIcon,
  ActionBarButton,
  ShareSheet,
  Sidebar,
  SidebarItem,
  List,
  Tabbar,
  TabbarItem,
  Tab,
  Tabs,
  Search,
  Icon,
  NavBar,
  Button,
  Field,
  CellGroup,
  Grid,
  GridItem,
  CountDown,
  Lazyload,
  Swipe,
  SwipeItem,
  DropdownMenu,
  DropdownItem,
  SubmitBar,
  Checkbox,
  SwipeCell,
  Card,
  Stepper,
  Popup,
  Progress,
  AddressEdit,
  ActionSheet,
  IndexBar,
  IndexAnchor,
  Cell,
  Cascader,
  ContactCard,
  CouponCell,
  CouponList,
  PullRefresh,
  Notify,
} from "vant";

const app = createApp(App);

app
  .use(store)
  .use(ActionBar)
  .use(ShareSheet)
  .use(ActionBarIcon)
  .use(ActionBarButton)
  .use(List)
  .use(Swipe)
  .use(SwipeItem)
  .use(Lazyload)
  .use(CountDown)
  .use(router)
  .use(Tabbar)
  .use(TabbarItem)
  //社区组件
  .use(Tab)
  .use(Tabs)
  .use(Notify)
  //头部搜索框
  .use(Search)
  .use(Icon)
  .use(NavBar)
  .use(Button)
  .use(Field)
  .use(CellGroup)
  .use(GridItem)
  .use(Grid)
  .use(Sidebar)
  .use(SidebarItem)
  .use(DropdownMenu)
  .use(DropdownItem)
  //购物车
  .use(SubmitBar)
  .use(Checkbox)
  .use(SwipeCell)
  .use(Card)
  .use(Stepper)
  // 我的
  .use(Popup)
  .use(Progress)
  .use(AddressEdit)
  .use(ActionSheet)
  .use(IndexBar)
  .use(IndexAnchor)
  .use(Cell)
  .use(Cascader)
  // 确认订单
  .use(ContactCard)
  .use(CouponCell)
  .use(PullRefresh)
  .use(CouponList);

app.mount("#app");
